<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>ThinkPHP示例：CURD操作</title>
<load href='__PUBLIC__/Css/common.css' />
<load href="__PUBLIC__/Js/Base.js" />
<load href="__PUBLIC__/Js/prototype.js" />
<load href="__PUBLIC__/Js/mootools.js" />
<load href="__PUBLIC__/Js/Ajax/ThinkAjax.js" />
<load href="__PUBLIC__/Js/editor/kindeditor.js" />

 </head>
 <body><script language="JavaScript">
 <!--
    function add(){
        ThinkAjax.sendForm('form1','__URL__/insert',complete,'result');
    }
    function complete(data,status){
        if (status==1)
        {
             if(self.parent)
             {
             window.setTimeout(function (){window.location.href='__URL__/index',20000});
             self.parent.tb_remove();
             self.parent.flexReload();
             }

        }
    }
    
    // KE.show({ 
        //id : 'id' //TEXTAREA输入框的ID 
  // });

    
 //-->
 </script>
 <div class="main">
 <h2>ThinkPHP示例之：CURD操作 [ 新增数据表单 ] </h2>
    <form id="form1" method='post' action="__URL__/insert">
 <table cellpadding=2 align="center" cellspacing=2>
   <tr>
    <td colspan="2"><div id="result" class="none result" style="font-family:微软雅黑,Tahoma;letter-spacing:2px"></div></td>
 </tr>
  		<tr>
			<td class="tRight" width="30%">role_id</td>
			<td><input name="role_id" type="text" value="{$vo.role_id}" ></td><!--
			<td>role_id</td>
		--></tr>
		<tr>
			<td class="tRight" width="30%">node_id</td>
			<td><input name="node_id" type="text" value="{$vo.node_id}" ></td><!--
			<td>node_id</td>
		--></tr>
		<tr>
			<td class="tRight" width="30%">level</td>
			<td><input name="level" type="text" value="{$vo.level}" ></td><!--
			<td>level</td>
		--></tr>
		<tr>
			<td class="tRight" width="30%">pid</td>
			<td><input name="pid" type="text" value="{$vo.pid}" ></td><!--
			<td>pid</td>
		--></tr>
		<tr>
			<td class="tRight" width="30%">module</td>
			<td><input name="module" type="text" value="{$vo.module}" ></td><!--
			<td>module</td>
		--></tr>

 <tr>
    <td><input type="hidden" name="ajax" value="1"></td>
    <td><input type="button" onClick="add()" class="button" value="保 存"> <input type="reset" class="button" value="清 空"></td>
 </tr>
 </table>
   </form>
</div>
 </body>
</html>

